<template>
  <!-- 顶部地址 -->
  <van-sticky>
    <van-nav-bar title="订单页" left-text="返回" left-arrow @click-left="$router.go(-1)" />
  </van-sticky>

  <van-contact-card type="add" @click="$router.push('/address')" />

  <van-submit-bar :price="0.00" button-text="提交订单" @submit="onSubmit" />

  <!-- 通用错误 -->
  <van-empty image="error" description="暂无订单" />
</template>

<script>
import { showNotify } from 'vant';
import { showToast } from 'vant';
export default {
  created() {
    showNotify({ type: 'success', message: ' 查询默认地址' });
  },
  
  methods: {
    onSubmit() {
      showToast('点击按钮');
    }
  }
}

</script>
<style scoped>

</style>